﻿using System;
using AntData.ORM.Mapping;

namespace DbModel.domain
{
    /// <summary>
    /// app版本管理
    /// </summary>
    [Table(Db = "antmgr", Comment = "app版本表", Name = "app_app_version")]
    public class AppVersion : LinqToDBEntity
    {
        private DateTime createTime = DateTime.Now;

        #region Column

        [Column("id", DataType = AntData.ORM.DataType.Int64, Precision = 19, Scale = 0,
             Comment = "主键"), PrimaryKey,
         Identity]
        public virtual long Tid { get; set; } // bigint(20)

        [Column("create_time", DataType = AntData.ORM.DataType.DateTime,
             Comment = "创建时间"), NotNull]
        public virtual DateTime CreateTime // datetime
        {
            get { return createTime; }
            set { createTime = value; }
        }

        [Column("name", DataType = AntData.ORM.DataType.Boolean, Precision = 3, Scale = 0,
             Comment = "名字"),
         NotNull]
        public virtual string Name { get; set; } // tinyint(1)

        [Column("version", DataType = AntData.ORM.DataType.VarChar, Length = 20,
             Comment = "版本号"), Nullable]
        public virtual string Version { get; set; } // varchar(20)

        #endregion
    }
}